package com.ischoolbar.programmer.service.home.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ischoolbar.programmer.dao.home.ActionDao;
import com.ischoolbar.programmer.entity.home.Action;
import com.ischoolbar.programmer.entity.home.Tea;
import com.ischoolbar.programmer.service.home.ActionService;

@Service
public class ActionServiceImpl implements ActionService{

	@Autowired
	private ActionDao actionDao;
	
	@Override
	public List<Action> findAll() {
		// TODO Auto-generated method stub
		return actionDao.findAll();
	}

	@Override
	public List<Action> findList(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return actionDao.findList(queryMap);
	}

	@Override
	public int getTotal(Map<String, Object> queryMap) {
		// TODO Auto-generated method stub
		return actionDao.getTotal(queryMap);
	}

	@Override
	public int edit(Action action) {
		// TODO Auto-generated method stub
		return actionDao.edit(action);
	}

	@Override
	public int addNowNum(Tea tea) {
		// TODO Auto-generated method stub
		return actionDao.addNowNum(tea);
	}

	@Override
	public Action findByActionId(String id) {
		// TODO Auto-generated method stub
		return actionDao.findByActionId(id);
	}

	@Override
	public int reduceNowNum(Long id) {
		// TODO Auto-generated method stub
		return actionDao.reduceNowNum(id);
	}

	
	
}
